<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>行政检查行为</title>
    <script src="../../../js/header.js"></script>
    <style>
        html,body,body>div{
            overflow: hidden;
        }
        #unitEntrance{
            margin: 0;
            padding: 0;
        }
        .tab-title{
            font-size: 16px;
            font-weight: bold;
            border-left: 4px solid #0D9AFF;
            font-family: PingFangSC-Medium;
            padding-left:10px;
            margin-bottom: 20px;
        }
        .el-input__inner {
            -webkit-appearance: none;
            background-color: #FFF;
            background-image: none;
            border-radius: 4px;
            border: 1px solid #DCDFE6;
            -webkit-box-sizing: border-box;
            box-sizing: border-box;
            color: #606266;
            display: inline-block;
            font-size: inherit;
            height: 30px;
            line-height: 30px;
            outline: 0;
            padding: 0 15px;
            -webkit-transition: border-color .2s cubic-bezier(.645,.045,.355,1);
            transition: border-color .2s cubic-bezier(.645,.045,.355,1);
        }
    </style>
</head>
<body>
<div id="firstpage" style="overflow: hidden;">
    <el-row type="flex" justify="center" style="margin-top: 25px;">
        <el-col :span="15">
            <el-row :gutter="20">
                <el-col >
                    <el-breadcrumb separator-class="el-icon-arrow-right" style="margin-top: 10px;">
                        <el-breadcrumb-item :to="{ path: '/' }"  @click.native="gobackmain()">首页</el-breadcrumb-item>
                        <el-breadcrumb-item :to="{ path: '/' }" >行政检查行为</el-breadcrumb-item>
                    </el-breadcrumb>
                    <div class="search-tab">
                        <el-tabs v-model="Title" >
                            <el-form :model="selectForm" :rules="rules" ref="selectForm" label-width="150px" style="margin-top: 10px;">
                                <el-row>
                                    <el-col :span="8">
                                        <el-form-item label="监管事项目录编码:" prop="" label-width="130px">
                                            <el-input v-model="selectForm.superviseItemImplementCode" placeholder="" ></el-input>
                                        </el-form-item>
                                    </el-col>
                                    <el-col :span="8">
                                        <el-form-item label="检查行为名称:" prop="" label-width="110px">
                                            <el-input v-model="selectForm.checkActionName" placeholder="" ></el-input>
                                        </el-form-item>
                                    </el-col>
                                    <el-col :span="8">
                                        <el-form-item label="检查形式:" prop="" label-width="110px">
                                            <el-select v-model="selectForm.checkForm" placeholder="请选择检查形式" >
                                                <el-option label="日常检查" value="1"></el-option>
                                                <el-option label="专项检查" value="2"></el-option>
                                            </el-select>
                                        </el-form-item>
                                    </el-col>
                                </el-row>
                                <el-row>
                                    <el-col :span="8">
                                        <el-form-item label="检查类别:" prop="" label-width="130px">
                                            <el-select v-model="selectForm.checkType" placeholder="请选择检查类别" >
                                                <el-option label="现场检查" value="1"></el-option>
                                                <el-option label="非现场检查" value="2"></el-option>
                                            </el-select>
                                        </el-form-item>
                                    </el-col>
                                    <el-col :span="8">
                                        <el-form-item label="检查方式:" prop="" label-width="110px">
                                            <el-select v-model="selectForm.checkMode" placeholder="请选择检查方式" >
                                                <el-option label="“双随机、一公开”监管" value="1"></el-option>
                                                <el-option label="重点监管" value="2"></el-option>
                                                <el-option label="信用监管" value="3"></el-option>
                                            </el-select>
                                        </el-form-item>
                                    </el-col>
                                    <el-col :span="8">
                                        <el-form-item label="检查结果:" prop="" label-width="110px">
                                            <el-select v-model="selectForm.checkResult" placeholder="请选择检查结果" >
                                                <el-option
                                                        v-for="item in checkResultData"
                                                        :key="item.appId"
                                                        :label="item.dictName"
                                                        :value="item.dictName">
                                                </el-option>
                                            </el-select>
                                        </el-form-item>
                                    </el-col>
                                </el-row>
                                <el-row>
                                    <el-col :span="8">
                                        <el-form-item label="检查时间:" prop="" label-width="130px">
                                            <el-date-picker type="date" placeholder="选择日期" v-model="selectForm.checkDate" value-format="yyyy-MM-dd" style="width: 100%;">
                                            </el-date-picker>
                                        </el-form-item>
                                    </el-col>
                                    <div style="float: right;">
                                        <el-button type="primary" size="small" style="width: 60px;height: 30px;" @click="searchForm()">查询</el-button>
                                        <el-button type="warning" size="small" style="width: 60px;height: 30px;" @click="resetForm()">重置</el-button>
                                    </div>
                                </el-row>
                            </el-form>
                            <el-table :data="tableData"  max-height="850"  border style="width: 100%; margin-top: 10px;" :header-cell-style="{background:'#eef1f6',color:'#606266'}" :ref = "multipleTable" @selection-change="handleSelectionChange">
                                <el-table-column type="selection" ></el-table-column>
                                <el-table-column
                                        type="index"
                                        label="序号"
                                        width="50"
                                        align="center">
                                </el-table-column>
                                <el-table-column
                                        prop="recordUniqueIdentity"
                                        label="记录唯一标识"
                                        width="120"
                                        align="center" >
                                </el-table-column>
                                <el-table-column
                                        prop="superviseItemImplementCode"
                                        label="监管事项目录编码"
                                        width="150"
                                        align="center">
                                </el-table-column>
                                <el-table-column
                                        prop="superviseItemCheckIcode"
                                        label=" 监管事项检查实施清单编码"
                                        width="190"
                                        align="center">
                                </el-table-column>
                                <el-table-column
                                        prop="checkActionName"
                                        label="检查行为名称"
                                        width="150"
                                        align="center">
                                </el-table-column>
                                <el-table-column
                                        prop="checkActionCode"
                                        label="检查行为编号"
                                        width="130"
                                        align="center">
                                </el-table-column>
                                <el-table-column
                                        prop="implementInstitution"
                                        label="实施机构"
                                        width="130"
                                        align="center">
                                </el-table-column>
                                <el-table-column label="操作" align="center" width="">
                                    <template slot-scope="scope" fixed="right">
                                        <el-button class="look" size="mini" @click="checkContent(scope.$index,scope.row)">查看</el-button>
                                    </template>
                                </el-table-column>
                            </el-table>
                            <div style="overflow: hidden;" justify="center">
                                <div class="pagination">
                                    <el-pagination
                                            @size-change="handleSizeChange"
                                            @current-change="handleCurrentChange"
                                            :current-page="currentPage"
                                            :page-sizes="[10]"
                                            :page-size="pagesize"
                                            background
                                            layout="total, sizes,prev, pager, next"
                                            :total="tableTotal"
                                            prev-text="上一页"
                                            next-text="下一页">
                                    </el-pagination>
                                    <el-button type="primary" size="mini" @click="appovalExByIds()" style="margin-left: 20px;float: right;">导出</el-button>
                                    <el-button type="primary" size="mini" @click="appovalEx()" style="float: right;">批量导出</el-button>
                                </div>
                            </div>
                            <el-dialog title="" :visible.sync="dialogForm" center fullscreen >
                                <el-row type="flex" justify="center" style="margin-top: 15px;">
                                    <el-col :span="16">
                                        <el-form :model="adminisitration"  label-width="200px">
                                            <!--监管信息表（行政检查行为）信息表-->
                                            <el-row>
                                                <el-col :span="10" class="tab-title">
                                                    行政检查行为信息表
                                                </el-col>
                                            </el-row>
                                            <el-row>
                                                <el-col :span="10">
                                                    <el-form-item label="记录唯一标识:" prop="recordUniqueIdentity" lable-width="180px">
                                                        <el-tooltip class="item" effect="dark" content="取值应符合GB/T 17969.8-2010要求" placement="top-start">
                                                            <el-input v-model="adminisitration.recordUniqueIdentity" placeholder="" disabled></el-input>
                                                        </el-tooltip>
                                                    </el-form-item>
                                                </el-col>
                                                <el-col :span="10">
                                                    <el-form-item label="监管对象:" prop="superviseObject" lable-width="180px">
                                                        <el-tooltip class="item" effect="dark" content="1、企业、个体户、农专社，填写为企业统一社会信用代码；
																								2、自然人时，填写身份证号；
																								3、特种设备时，填写生产企业统一社会信用代码#产品品牌#出厂日期
																								4、为特定产品（食品）时，填写生产企业统一社会信用代码#生产批号
																								5、为特定产品（三种特殊食品）时，填写生产企业统一社会信用代码#生产批号
																								6、特定产品为药品时，填写生产企业统一社会信用代码#生产许可证编号#生产批号
																								7、特定产品为化妆品时，填写生产企业统一社会信用代码#生产许可证编号#生产批号
																								8、特定产品为医疗器械时，填写生产企业统一社会信用代码#注册证编号#生产批号
																								9、为场地场所时，填写场地场所名称#所在地区" placement="top-start">

                                                            <el-input v-model="adminisitration.superviseObject" placeholder="" disabled></el-input>
                                                        </el-tooltip>
                                                    </el-form-item>
                                                </el-col>
                                            </el-row>
                                            <el-row>
                                                <el-col :span="10">
                                                    <el-form-item label="监管事项目录编码:" prop="superviseItemImplementCode" lable-width="180px">
                                                        <el-input v-model="adminisitration.superviseItemImplementCode" placeholder="" disabled></el-input>
                                                    </el-form-item>
                                                </el-col>
                                                <el-col :span="10">
                                                    <el-form-item label="监管事项检查实施清单编码:" prop="superviseItemCheckIcode" lable-width="180px">
                                                        <el-input v-model="adminisitration.superviseItemCheckIcode" placeholder="" disabled></el-input>
                                                    </el-form-item>
                                                </el-col>
                                            </el-row>
                                            <el-row>
                                                <el-col :span="10">
                                                    <el-form-item label="检查行为名称:" prop="checkActionName" lable-width="180px">
                                                        <el-input v-model="adminisitration.checkActionName" placeholder="" disabled></el-input>
                                                    </el-form-item>
                                                </el-col>
                                                <el-col :span="10">
                                                    <el-form-item label="检查行为编号:" prop="checkActionCode" lable-width="180px">
                                                        <el-tooltip class="item" effect="dark" content="行为编号须是唯一编号，可在已有办件编号前加18位实施机构的统一社会信用代码" placement="top-start">
                                                            <el-input v-model="adminisitration.checkActionCode" placeholder="" disabled></el-input>
                                                        </el-tooltip>
                                                    </el-form-item>
                                                </el-col>
                                            </el-row>
                                            <el-row>
                                                <el-col :span="10">
                                                    <el-form-item label="实施机构:" prop="implementInstitution" lable-width="180px">
                                                        <el-input v-model="adminisitration.implementInstitution" placeholder="" disabled></el-input>
                                                    </el-form-item>
                                                </el-col>
                                                <el-col :span="10">
                                                    <el-form-item label="实施机构编码:" prop="implementInstitutionCode" lable-width="180px">
                                                        <el-input v-model="adminisitration.implementInstitutionCode" placeholder="" disabled></el-input>
                                                    </el-form-item>
                                                </el-col>
                                            </el-row>
                                            <el-row>
                                                <el-col :span="10">
                                                    <el-form-item label="受委托部门:" prop="entrustDept" lable-width="180px">
                                                        <el-input v-model="adminisitration.entrustDept" placeholder="" disabled></el-input>
                                                    </el-form-item>
                                                </el-col>
                                                <el-col :span="10">
                                                    <el-form-item label="受委托部门编码:" prop="entrustDeptCode" lable-width="180px">
                                                        <el-tooltip class="item" effect="dark" content="受委托部门的统一社会信用代码" placement="top-start">
                                                            <el-input v-model="adminisitration.entrustDeptCode" placeholder="" disabled></el-input>
                                                        </el-tooltip>
                                                    </el-form-item>
                                                </el-col>
                                            </el-row>
                                            <el-row>
                                                <el-col :span="10">
                                                    <el-form-item label="行政相对人(单位/个人):" prop="administrativeCp" lable-width="240px">
                                                        <el-tooltip class="item" effect="dark" content="与行政主体对应的另一方当事人，监管责任最终的承担者" placement="top-start">
                                                            <el-input v-model="adminisitration.administrativeCp" placeholder="" disabled></el-input>
                                                        </el-tooltip>
                                                    </el-form-item>
                                                </el-col>
                                                <el-col :span="10">
                                                    <el-form-item label="行政相对人性质:" prop="administrativeCpNa" lable-width="180px">
                                                        <el-select v-model="adminisitration.administrativeCpNa" placeholder="请选择行政相对人性质" disabled style="width: 100%;">
                                                            <el-option label="个人" value="1"></el-option>
                                                            <el-option label="法人" value="2"></el-option>
                                                            <el-option label="非法人组织" value="3"></el-option>
                                                            <el-option label="个体工商户" value="4"></el-option>
                                                        </el-select>
                                                    </el-form-item>
                                                </el-col>
                                            </el-row>
                                            <el-row>
                                                <el-col :span="10">
                                                    <el-form-item label="行政相对人证件类型:" prop="administrativeCpCeType" lable-width="180px">
                                                        <el-select v-model="adminisitration.administrativeCpCeType" placeholder="请选择行政相对人证件类型" disabled style="width: 100%;">
                                                            <el-option
                                                                    v-for="item in cpCeTypeData"
                                                                    :key="item.appId"
                                                                    :label="item.dictName"
                                                                    :value="item.dictName">
                                                            </el-option>
                                                        </el-select>
                                                    </el-form-item>
                                                </el-col>
                                                <el-col :span="10">
                                                    <el-form-item label="行政相对人(单位/个人)编码:" prop="administrativeCpUiCode" lable-width="180px">
                                                        <el-tooltip class="item" effect="dark" content="如是单位则填写该单位统一社会信用代码，如是个人则填写相应的证件号码等" placement="top-start">
                                                            <el-input v-model="adminisitration.administrativeCpUiCode" placeholder="" disabled></el-input>
                                                        </el-tooltip>
                                                    </el-form-item>
                                                </el-col>
                                            </el-row>
                                            <el-row>
                                                <el-col :span="10">
                                                    <el-form-item label="注册地址:" prop="addressRegistered" lable-width="180px">
                                                        <el-input v-model="adminisitration.addressRegistered" placeholder="" disabled></el-input>
                                                    </el-form-item>
                                                </el-col>
                                                <el-col :span="10">
                                                    <el-form-item label="经营地址:" prop="addressOperating" lable-width="180px">
                                                        <el-input v-model="adminisitration.addressOperating" placeholder="" disabled></el-input>
                                                    </el-form-item>
                                                </el-col>
                                            </el-row>
                                            <el-row>
                                                <el-col :span="10">
                                                    <el-form-item label="行政区划代码:" prop="areaNumber" lable-width="180px">
                                                        <el-input v-model="adminisitration.areaNumber" placeholder="" disabled></el-input>
                                                    </el-form-item>
                                                </el-col>
                                                <el-col :span="10">
                                                    <el-form-item label="检查形式:" prop="checkForm" lable-width="180px">
                                                        <el-select v-model="adminisitration.checkForm" placeholder="请选择检查形式" disabled  style="width: 100%;">
                                                            <el-option label="日常检查" value="1"></el-option>
                                                            <el-option label="专项检查" value="2"></el-option>
                                                        </el-select>
                                                    </el-form-item>
                                                </el-col>
                                            </el-row>
                                            <el-row>
                                                <el-col :span="10">
                                                    <el-form-item label="检查类别:" prop="checkType" lable-width="180px">
                                                        <el-select v-model="adminisitration.checkType" placeholder="请选择检查类别" disabled  style="width: 100%;">
                                                            <el-option label="现场检查" value="1"></el-option>
                                                            <el-option label="非现场检查" value="2"></el-option>
                                                        </el-select>
                                                    </el-form-item>
                                                </el-col>
                                                <el-col :span="10">
                                                    <el-form-item label="检查方式:" prop="checkMode" lable-width="180px">
                                                        <el-select v-model="adminisitration.checkMode" placeholder="请选择检查方式" disabled  style="width: 100%;">
                                                            <el-option label="“双随机、一公开”监管" value="1"></el-option>
                                                            <el-option label="重点监管" value="2"></el-option>
                                                            <el-option label="信用监管" value="3"></el-option>
                                                        </el-select>
                                                    </el-form-item>
                                                </el-col>
                                            </el-row>
                                            <el-row>
                                                <el-col :span="10">
                                                    <el-form-item label="检查结果:" prop="checkResult" lable-width="180px">
                                                        <el-select v-model="adminisitration.checkResult" placeholder="请选择检查结果" disabled  style="width: 100%;">
                                                            <el-option
                                                                    v-for="item in checkResultData"
                                                                    :key="item.appId"
                                                                    :label="item.dictName"
                                                                    :value="item.dictName">
                                                            </el-option>
                                                        </el-select>
                                                    </el-form-item>
                                                </el-col>
                                                <el-col :span="10">
                                                    <el-form-item label="检查时间:" prop="checkDate" lable-width="180px">
                                                        <el-date-picker type="date" placeholder="选择日期" v-model="adminisitration.checkDate" value-format="yyyy-MM-dd" disabled style="width: 100%;">
                                                        </el-date-picker>
                                                    </el-form-item>
                                                </el-col>
                                            </el-row>
                                            <el-row>
                                                <el-col :span="10">
                                                    <el-form-item label="检查人员:" prop="checkPersonnel" lable-width="180px" >
                                                        <el-tooltip class="item" effect="dark" content="填报进行检查的人员名称，填报检查人数不少于2人" placement="top-start">
                                                            <el-input v-model="adminisitration.checkPersonnel" placeholder="" disabled></el-input>
                                                        </el-tooltip>
                                                    </el-form-item>
                                                </el-col>
                                                <el-col :span="10">
                                                    <el-form-item label="执法监管人员:" prop="checkPersonnelCode" lable-width="180px">
                                                        <el-tooltip class="item" effect="dark" content="执法证号与对应执法人员名称的顺序保持一致" placement="top-start">
                                                            <el-input v-model="adminisitration.checkPersonnelCode" placeholder="" disabled></el-input>
                                                        </el-tooltip>
                                                    </el-form-item>
                                                </el-col>
                                            </el-row>
                                            <el-row>
                                                <el-col :span="10">
                                                    <el-form-item label="报送时间:" prop="submittedDate" lable-width="180px">
                                                        <el-date-picker type="date" placeholder="选择日期" v-model="adminisitration.submittedDate" value-format="yyyy-MM-dd" disabled style="width: 100%;">
                                                        </el-date-picker>
                                                    </el-form-item>
                                                </el-col>
                                                <el-col :span="10">
                                                    <el-form-item label="报送人员:" prop="submittedPersonnel" lable-width="180px">
                                                        <el-input v-model="adminisitration.submittedPersonnel" placeholder="" disabled></el-input>
                                                    </el-form-item>
                                                </el-col>
                                            </el-row>
                                            <el-row>
                                                <el-col :span="22">
                                                    <div style="float:right;">
                                                        <el-button type="info" size="small" style="width: 60px;height: 30px;" @click="dialogForm = false;clearForm()">取消</el-button>
                                                    </div>
                                                </el-col>
                                            </el-row>
                                        </el-form>
                                    </el-col>
                                </el-row>
                            </el-dialog>
                            </el-tab-pane>
                        </el-tabs>
                    </div>
                </el-col>
            </el-row>
        </el-col>
    </el-row>
</div>
</body>
<script>
    var firstpage = new Vue({
        el: '#firstpage',
        data() {
            return {
                dialogForm: false,
                currentPage: 1, //默认显示页面为1
                pagesize: 10, // 每页的数据条数
                tableTotal:'',
                cpCeTypeData: [],//行政相对人证件类型
                checkResultData: [],//检查结果
                adminisitration: {
                    actionId: '',
                    recordUniqueIdentity: '',
                    superviseItemImplementCode: '',
                    superviseItemCheckIcode: '',
                    checkActionCode: '',
                    checkActionName: '',
                    implementInstitution: '',
                    implementInstitutionCode: '',
                    entrustDept: '',
                    entrustDeptCode: '',
                    superviseObject: '',
                    administrativeCp: '',
                    administrativeCpNa: '',
                    administrativeCpCeType: '',
                    administrativeCpUiCode: '',
                    addressRegistered: '',
                    addressOperating: '',
                    areaNumber: '',
                    checkForm: '1',
                    checkType: '1',
                    checkMode: '1',
                    checkResult: '',
                    checkDate: '',
                    checkPersonnel: '',
                    checkPersonnelCode: '',
                    submittedDate: '',
                    submittedPersonnel: '',
                    delFlag: '',
                    creatTime: '',
                    creatPreson: ''
                },
                selectForm: {
                    superviseItemImplementCode:'',
                    checkActionName:'',
                    checkForm : '',
                    checkType : '',
                    checkMode:'',
                    checkResult : '',
                    checkDate:''
                },
                currentRow: null,
                tableData: [],
                showOnSubmit: true,
                showOnReplace: false,
                ids:'',
                multipleSelection: []
            }
        },
         created(){
              /*行政相对人证件类型 */
              axios.post('/dzjportal/dict/getdict/d_administrativeCpCeType').then(res => {
                      this.cpCeTypeData = res.data.data.result;
              }).catch(e => {
                      this.$message.error("网络连接超时");
              })

              /* 检查结果 */
              axios.post('/dzjportal/dict/getdict/d_checkResult').then(res => {
                      this.checkResultData = res.data.data.result;
              }).catch(e => {
                      this.$message.error("网络连接超时");
              })
         },
        mounted(){
            this.getData();
        },
        methods: {
           getData() {
                axios({
                    method: 'get',
                    url: '/dzjportal/getAction/getcheck',
                    params: {
                        pageSize: this.pagesize,
                        pageNo: this.currentPage
                    }
                })
                    .then(response => {
                    let data = response.data;
                if (data.code == 200) {
                    debugger;
                    let dataInformation = data.data.results;
                    this.tableTotal = data.data.total;// 数据长度
                    this.tableData = dataInformation;
                } else {
                    this.$message.error(data.msg);
                }
            })
            .catch(function (error) {
                    console.log(error);
                });
            },
            /* 列表页搜索 */
           searchForm() {
                axios({
                    method: 'get',
                    url: '/dzjportal/getAction/getcheck',
                    params: {
                        pageSize: this.pagesize,
                        pageNo: this.currentPage,
                        superviseItemImplementCode :this.selectForm.superviseItemImplementCode.trim(),
                        checkActionName : this.selectForm.checkActionName.trim(),
                        checkForm : this.selectForm.checkForm.trim(),
                        checkType:this.selectForm.checkType,
                        checkMode : this.selectForm.checkMode,
                        checkResult:this.selectForm.checkResult,
                        checkDate:this.selectForm.checkDate
                    }
                })
                    .then(response => {
                    let data = response.data;
                if (data.code == 200) {
                    let dataInformation = data.data.results;
                    this.tableTotal = data.data.total;// 数据长度
                    this.tableData = dataInformation;
                } else {
                    this.$message.error(data.msg);
                }
            })
            .catch(function (error) {
                    console.log(error);
                });
            },
            // 查看
           checkContent(index,row){
                this.dialogForm = true;
                this.showInformation(index,row);
            },
           gobackmain(){
                parent.mainwork.backIndex();
            },
           clearForm(){
                this.adminisitration.actionCode='';
                this.adminisitration.recordUniqueIdentity = '';
                this.adminisitration.superviseItemImplementCode = '';
                this.adminisitration.superviseItemCheckIcode = '';
                this.adminisitration.checkActionCode = '';
                this.adminisitration.checkActionName = '';
                this.adminisitration.implementInstitution = '';
                this.adminisitration.implementInstitutionCode = '';
                this.adminisitration.entrustDept = '';
                this.adminisitration.entrustDeptCode = '';
                this.adminisitration.superviseObject = '';
                this.adminisitration.administrativeCp = '';
                this.adminisitration.administrativeCpNa = '';
                this.adminisitration.administrativeCpCeType = '';
                this.adminisitration.administrativeCpUiCode = '';
                this.adminisitration.addressRegistered = '';
                this.adminisitration.addressOperating = '';
                this.adminisitration.areaNumber = '';
                this.adminisitration.checkForm = '1';
                this.adminisitration.checkType = '1';
                this.adminisitration.checkMode = '1';
                this.adminisitration.checkResult = '';
                this.adminisitration.checkDate = '';
                this.adminisitration.checkPersonnel = '';
                this.adminisitration.checkPersonnelCode = '';
                this.adminisitration.submittedDate = '';
                this.adminisitration.submittedPersonnel = '';
            },
            /* 列表页重置 */
           resetForm() {
                this.selectForm.currentPage = 1; //默认显示页面为1
                this.selectForm.pagesize = 10; // 每页的数据条数
                this.selectForm.superviseItemImplementCode='',
                this.selectForm.checkActionName='',
                this.selectForm.checkForm='',
                this.selectForm.checkType='',
                this.selectForm.checkMode='',
                this.selectForm.checkResult='',
                this.selectForm.checkDate='',
                this.getData();
            },
            /* 单选搜索表单 */
            selectCurrentChange(val){
                this.currentRow = val;
            },
            //每页下拉显示数据
            handleSizeChange(size) {
                this.pagesize = size;
                this.getData();
            },
            //点击第几页
            handleCurrentChange(currentPage) {
                this.currentPage = currentPage;
                this.getData();
            },
            // 公共方法--查看
            showInformation(index,row){
                axios({
                    method: 'get',
                    url: '/dzjportal/getAction/getById',
                    params:{
                        actionId: row.actionId
                    }
                })
                    .then(response => {
                    console.log(response.data);
                if (response.data.code == 200) {
                    debugger;
                    this.adminisitration = response.data.data.data;
                } else {
                    this.$message.error(data.msg);
                }
            }).catch(function (error) {
                    console.log(error);
                });
            },
            //批量导出
            appovalEx(){
                this.$confirm('确定要批量导出吗?', '提示', {
                    cancelButtonText: '取消',
                    confirmButtonText: '确定',
                    type: 'warning'
                }).then(() => {
                    window.location.href="/dzjportal/getAction/exportAll?superviseItemImplementCode="+this.selectForm.superviseItemImplementCode+"&checkActionName="
                    +this.selectForm.checkActionName+"&checkForm="
                    +this.selectForm.checkForm+"&checkType="
                    +this.selectForm.checkType+"&checkMode="
                    +this.selectForm.checkMode+"&checkResult="
                    +this.selectForm.checkResult+"&checkDate="
                    +this.selectForm.checkDate;
            }).catch(() => {
                    this.$message({
                    type: 'info',
                    message: '取消导出'
                });
            });
            },
            handleSelectionChange(val) {
                //val 为选中数据的集合
                this.multipleSelection = val;
            },
            //导出
            appovalExByIds(){
                debugger;
                if(this.multipleSelection.length >0){
                    this.ids = this.multipleSelection.map(function(multipleSelection,index){
                        return multipleSelection.actionId;
                    }).join(",");
                    this.$confirm('确定要导出所选数据吗?', '提示', {
                        cancelButtonText: '取消',
                        confirmButtonText: '确定',
                        type: 'warning'
                    }).then(() => {
                        window.location.href="/dzjportal/getAction/exportByIds?ids="+this.ids
                }).catch(() => {
                        this.$message({
                        type: 'info',
                        message: '取消导出'
                    });
                });
                }else {
                    this.$message('请选择要导出的数据！');
                }


            }

        }
    })
</script>
</html>